using System.IO;
using System.Security.Policy;
using System.Xml;

namespace ImpEx.Engine
{
    public class WSSVirtualDirectory : WSSObject
    {
        public string Url;

        public WSSVirtualDirectory(WSSObject parentObj)
            : base(parentObj)
        {
            ChildrenCollection.Add(typeof(WSSVirtualDirectory).Name, new WSSCollection());
            ChildrenCollection.Add(typeof(FSDirectory).Name, new WSSCollection());
            ChildrenCollection.Add(typeof(SPSWeb).Name, new WSSCollection());
            this.IsChildrenLoaded = true;
        }

        public SPSWeb RootWeb
        {
            get
            {
                return (SPSWeb) ChildrenCollection[typeof (SPSWeb).Name][0];
            }
        }

        public override void ChildrenDelayLoad(object o)
        {
        }

        public override void LoadEntity(object o)
        {
        }

        protected override void ChildrenDelayLoad()
        {
        }
    }
}